package base.thread;

public class TestThread2 {
	public static void main(String[] args) {
		Runner1 r2 = new Runner1();
		Thread t1 = new Thread(r2);
		t1.start();
		for(int i=0;i<100;i++){
		System.out.println("hello world:"+i);
		}	
	}
}

class Runner1 implements Runnable {
	public void run() {
		for(int i=0;i<100;i++){
			System.out.println("testthread:"+i);
		}
	}
}